package com.kotlin.tsw.usercenter.data.repository

import com.kotlin.tsw.baselibrary.data.net.RetrofixFactory
import com.kotlin.tsw.baselibrary.data.protocol.BaseResp
import com.kotlin.tsw.usercenter.data.api.UploadApi
import com.kotlin.tsw.usercenter.data.api.UserApi
import com.kotlin.tsw.usercenter.data.protocol.*
import rx.Observable
import javax.inject.Inject

class UploadRepository @Inject constructor() {
    fun getUploadToken(): Observable<BaseResp<String>> {
        return RetrofixFactory.instance.create(UploadApi::class.java)
                .getUploadToken()
    }
}